<?php
define('SYSPATH', '../system/');
define('BASEURL', 'http://localhost/cms/');
require SYSPATH . "function.php";
require SYSPATH . "admin.php";
require_once SYSPATH . "database.php";
$action = input_get('action');
if(!$action){
    $action= 'cate_list';
}
if (file_exists('action/' . $action . '.php')) {
    require('action/' . $action . '.php');
} else {
    require('action/show_404.php');
}
?>